appowners:
  - mizdebsk

koschei_container_image: quay.io/koschei/koschei:fedora-prod

koschei_topurl: https://koschei.fedoraproject.org
koschei_pgsql_hostname: db01.iad2.fedoraproject.org
koschei_koji_hub: koji.fedoraproject.org
koschei_kojipkgs: kojipkgs.fedoraproject.org
koschei_koji_web: koji.fedoraproject.org
koschei_oidc_provider: id.fedoraproject.org
koschei_bugzilla: bugzilla.redhat.com

koschei_oidc_client_secret: "{{ koschei_oidc_client_secret_prod }}"
koschei_oidc_crypto_secret: "{{ koschei_oidc_crypto_secret_prod }}"

koschei_frontend_replicas: 2

koschei_backend_services:
  - { name: polling,        cpu: [ 1000, 1500 ],  memory: [  256,  512 ] }
  - { name: scheduler,      cpu: [  200,  500 ],  memory: [   64,  128 ] }
  - { name: build-resolver, cpu: [ 1000, 1500 ],  memory: [ 1024, 4096 ] }
  - { name: repo-resolver,  cpu: [ 2000, 8000 ],  memory: [ 1024, 4096 ] }
  - { name: watcher,        cpu: [ 1000, 1500 ],  memory: [  256,  512 ] }

koschei_cron_jobs:
  - name: db-cleanup
    schedule: "0 3 * * *"
    command: "koschei-admin cleanup --older-than 6"
  - name: refresh-php
    schedule: "0 0-23/3 * * *"
    command: "koschei-refresh-group php '^php'"
  - name: refresh-rust
    schedule: "5 0-23/3 * * *"
    command: "koschei-refresh-distgit-group rust-sig rust-sig --append"
  - name: refresh-go
    schedule: "7 0-23/3 * * *"
    command: "koschei-refresh-distgit-group go-sig go-sig --append"
  - name: refresh-scitech
    schedule: "11 0-23/3 * * *"
    command: "koschei-refresh-distgit-group scitech_sig scitech_sig"
  - name: refresh-neuro
    schedule: "13 0-23/3 * * *"
    command: "koschei-refresh-distgit-group neuro-sig neuro-sig"
  - name: track-rust
    schedule: "15 0-23/3 * * *"
    command: "koschei-track-group rust-sig"
  - name: track-go
    schedule: "17 0-23/3 * * *"
    command: "koschei-track-group go-sig"
  - name: track-scitech
    schedule: "21 0-23/3 * * *"
    command: "koschei-track-group scitech_sig"
  - name: track-neuro
    schedule: "23 0-23/3 * * *"
    command: "koschei-track-group neuro-sig"
  - name: refresh-python
    schedule: "25 0-23/3 * * *"
    command: "koschei-refresh-distgit-group koschei/auto-group-python-sig python-sig"
  - name: track-python
    schedule: "27 0-23/3 * * *"
    command: "koschei-admin psql <<<'UPDATE package SET tracked = TRUE WHERE id IN (SELECT p.id FROM package p JOIN package_group_relation pgr ON p.base_id = pgr.base_id WHERE NOT p.tracked AND pgr.group_id = 76)'"
  - name: refresh-churchyard
    schedule: "29 0-23/3 * * *"
    command: "koschei-refresh-user-group koschei/auto-group-churchyard churchyard"
  - name: track-churchyard
    schedule: "31 0-23/3 * * *"
    command: "koschei-admin psql <<<'UPDATE package SET tracked = TRUE WHERE id IN (SELECT p.id FROM package p JOIN package_group_relation pgr ON p.base_id = pgr.base_id WHERE NOT p.tracked AND pgr.group_id = 79)'"
  # Workaround for https://github.com/fedora-infra/koschei/issues/234
  - name: rewind-unapplied-changes
    schedule: "42 8 17 */3 *"
    command: "koschei-admin psql <<<'BEGIN; DELETE FROM unapplied_change; ALTER SEQUENCE unapplied_change_id_seq RESTART; COMMIT'"
